<script type="text/javascript">/*<![CDATA[*/
function checkForm() {
    formErrors = false;
    if (document.qreply.message.value.length < 2) {
        formErrors = "L_(Empty_message)";
    }
    if (formErrors) {
        alert(formErrors);
        return false;
    } else {
        bbstyle(-1);
        return true;
    }
}
/*]]>*/</script>
<div class="table1">
<table style="height:54px; border:0; padding:10px">
 <tr>
  <td><span class="cattitle"><!-- IF S_FOLDER == 'inbox' -->[<a href="U_(&amp;folder=inbox)">L_(Inbox)</a>]<!-- ELSE --><a href="U_(&amp;folder=inbox)">L_(Inbox)</a><!-- ENDIF -->&nbsp;</span></td>
  <td><span class="cattitle"><!-- IF S_FOLDER == 'sentbox' -->[<a href="U_(&amp;folder=sentbox)">L_(Sentbox)</a>]<!-- ELSE --><a href="U_(&amp;folder=sentbox)">L_(Sentbox)</a><!-- ENDIF -->&nbsp;</span></td>
  <td><span class="cattitle"><!-- IF S_FOLDER == 'outbox' -->[<a href="U_(&amp;folder=outbox)">L_(Outbox)</a>]<!-- ELSE --><a href="U_(&amp;folder=outbox)">L_(Outbox)</a><!-- ENDIF -->&nbsp;</span></td>
  <td><span class="cattitle"><!-- IF S_FOLDER == 'savebox' -->[<a href="U_(&amp;folder=savebox)">L_(Savebox)</a>]<!-- ELSE --><a href="U_(&amp;folder=savebox)">L_(Savebox)</a><!-- ENDIF -->&nbsp;</span></td>
 </tr>
</table>
<br clear="all" />

<!-- IF U_REPLY --><p><a href="{U_REPLY}">L_(Post_reply_pm)</a></p><!-- ENDIF -->

<table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
<form method="post" action="{S_PM_ACTION}" enctype="multipart/form-data" accept-charset="utf-8">
    <tr>
      <th colspan="3" class="thHead" style="white-space:nowrap;">{BOX_NAME} :: L_(MESSAGE)</th>
    </tr>
    <tr>
      <td class="row2"><span class="genmed">L_(FROM):</span></td>
      <td style="width:100%;" class="row2" colspan="2"><span class="genmed"><a href="{U_MESSAGE_FROM}">{MESSAGE_FROM}</a></span></td>
    </tr>
    <tr>
      <td class="row2"><span class="genmed">L_(TO):</span></td>
      <td style="width:100%;" class="row2" colspan="2"><span class="genmed"><a href="{U_MESSAGE_TO}">{MESSAGE_TO}</a></span></td>
    </tr>
    <tr>
      <td class="row2"><span class="genmed">L_(DATE):</span></td>
      <td style="width:100%;" class="row2" colspan="2"><span class="genmed">{POST_DATE}</span></td>
    </tr>
    <tr>
      <td class="row2"><span class="genmed">L_(SUBJECT):</span></td>
      <td style="width:100%;" class="row2"><span class="genmed">{POST_SUBJECT}</span></td>
      <td style="white-space:nowrap;" class="row2" align="right">
				<!-- IF U_QUOTE --><a href="{U_QUOTE}">L_(Post_quote_pm)</a><!-- ENDIF -->
				<!-- IF U_EDIT --><a href="{U_EDIT}">L_(Edit_pm)</a><!-- ENDIF -->
			</td>
    </tr>
    <tr>
      <td valign="top" colspan="3" class="row1"><span class="postbody">{MESSAGE}</span></td>
    </tr>
    <tr>
      <td class="catBottom" colspan="3" style="height:28px;" align="right"> {S_HIDDEN_FIELDS}
        <input type="submit" name="save" value="L_(Save_message)" class="liteoption" />
        &nbsp;
        <input type="submit" name="delete" value="L_(Delete_message)" class="liteoption" />
      </td>
    </tr>
</form>
<!-- BEGIN quickreply -->
<form action="{quickreply.POST_ACTION}" method="post" name="qreply" onsubmit="return checkForm(this)">
    <tr>
      <th colspan="3" style="height:25px;" style="padding: 0px"><b>{L_QUICK_REPLY}</b></th>
    </tr><tr>
      <td align="right" class="row1" valign="top"><span class="gen"><b>L_(SUBJECT):</b></span></td>
      <td class="row2" colspan="2" valign="top">
        <input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{quickreply.SUBJECT}" /><br /></td>
    </tr><tr>
      <td align="right" class="row1" valign="top"><span class="gen"><b>L_(Message):</b></span></td>
      <td class="row1" colspan="2" valign="top" style="padding-top: 0px; padding-bottom: 0px">
      <!-- IF quickreply.BBCODE_ON -->{quickreply.BBCODE_ON}<!-- ENDIF -->
      <textarea name="message" style="width:450px; height:140px;" wrap="virtual" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);"></textarea><br />
      <!-- IF quickreply.SMILIES_ON -->{quickreply.SMILIES_ON}<!-- ENDIF -->
      </td>
    </tr><tr>
      <td align="right" class="row1" valign="top"><span class="gen"><b>L_(Options):</b></span></td>
      <td class="row2" colspan="2" valign="top"><span class="gensmall">
      <input type="checkbox" name="quick_quote" value="{quickreply.S_QREPLY_MSG}" />&nbsp;{L_QUOTE_LAST_MESSAGE}<br />
      <!-- IF quickreply.HTML_ON -->
      <input type="checkbox" name="disable_html"{quickreply.S_HTML_CHECKED} />&nbsp;L_(Disable_HTML_pm)<br />
      <!-- ENDIF -->
      <!-- IF quickreply.BBCODE_ON -->
      <input type="checkbox" name="disable_bbcode"{quickreply.S_BBCODE_CHECKED} />&nbsp;L_(Disable_BBCode_pm)<br />
      <!-- ENDIF -->
      <!-- IF quickreply.SMILIES_ON -->
      <input type="checkbox" name="disable_smilies"{quickreply.S_SMILIES_CHECKED} />&nbsp;L_(Disable_Smilies_pm)<br />
      <!-- ENDIF -->
      <input type="checkbox" name="attach_sig"{quickreply.S_SIG_CHECKED} />&nbsp;L_(Attach_signature)<br /></span></td>
    </tr><tr>
      <td class="catbottom" colspan="3" align="center" style="padding:0px; height:28px;">
      {quickreply.S_HIDDEN_FIELDS}
      <input type="submit" name="preview" class="liteoption" value="L_(PREVIEW)" />&nbsp;<input type="submit" name="post" class="mainoption" value="L_(SUBMIT)" /></td>
    </tr>
</form>
<!-- END quickreply -->
</table>
</div>
